// 从 VitePress 的默认主题中导入 DefaultTheme
import DefaultTheme from "vitepress/theme";
import {
  AntDesignContainer,
  ElementPlusContainer,
  NaiveUIContainer,
} from "@vitepress-demo-preview/component";
import "@vitepress-demo-preview/component/dist/style.css";
// 导入 Font Awesome 图标
import { library } from "@fortawesome/fontawesome-svg-core";
import { fas } from "@fortawesome/free-solid-svg-icons";
library.add(fas);
import "@/components/style/index.css";

export default {
  ...DefaultTheme,
  enhanceApp({ app }) {
    app.component("demo-preview", AntDesignContainer);
    // 完成了 @vitepress-demo-preview 的配置，接下来就可以在组件文档中编写demo了。
  },
};
